package com.xml.services;

import java.util.List;

import com.xml.dao.BorrowDao;
import com.xml.dao.BorrowDaoImpl;
import com.xml.domain.Borrow;

public class BorrowServiceImpl implements BorrowService {
	BorrowDao bd;
	@Override
	public boolean borrowBook(String readerId, String isbn) {
		bd = new BorrowDaoImpl();
		return bd.borrowBook(readerId, isbn);
	}

	@Override
	public boolean returnBook(String readerId, String isbn) {
		bd = new BorrowDaoImpl();
		return bd.returnBook(readerId, isbn);
	}

	@Override
	public List<Borrow> searchBorrowInfo(String readerId) {
		bd = new BorrowDaoImpl();
		return bd.searchBorrowInfo(readerId);
	}

}
